package com.aspose.cells;

class zang extends zbz {
   zang(zani var1) {
      this.c(229);
      this.a((short)(var1.getCount() * 8 + 2));
      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)var1.getCount()), 0, this.c, 0, 2);

      for(int var2 = 0; var2 < var1.getCount(); ++var2) {
         CellArea var3 = var1.a(var2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var3.StartRow), 0, this.c, 8 * var2 + 2, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var3.EndRow), 0, this.c, 8 * var2 + 4, 2);
         this.c[8 * var2 + 6] = (byte)var3.StartColumn;
         this.c[8 * var2 + 8] = (byte)var3.EndColumn;
      }

   }

   zang(zani var1, int var2, int var3) {
      this.c(229);
      this.a((short)((var3 - var2) * 8 + 2));
      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a((short)(var3 - var2)), 0, this.c, 0, 2);

      for(int var4 = var2; var4 < var3; ++var4) {
         CellArea var5 = var1.a(var4);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var5.StartRow), 0, this.c, 8 * (var4 - var2) + 2, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var5.EndRow), 0, this.c, 8 * (var4 - var2) + 4, 2);
         this.c[8 * (var4 - var2) + 6] = (byte)var5.StartColumn;
         this.c[8 * (var4 - var2) + 8] = (byte)var5.EndColumn;
      }

   }
}
